package com.gagakuai.bpm.mqlistener.camunda.baseproxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;

/*
 * @program: bpm_server
 * @description: 死信队列代理 todo 后面考虑做成代理工厂
 * @author: houhong
 * @create: 2022-07-13 10:06
 */
public class DeadMessageProxy implements InvocationHandler {

    //真实类
    private Object target;

    private Object getProxy() {

        ClassLoader classLoader = target.getClass().getClassLoader();
        Class<?>[] interfaces = target.getClass().getInterfaces();
        return Proxy.newProxyInstance(classLoader, interfaces, this);
    }


    /*
     * 处理业务
     */
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {



        return null;

    }
}